import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: 'api/blade-user/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
export const submit = (params) => {
  return request({
    url: 'api/blade-user/submit',
    method: 'post',
    data: {
      ...params
    }
  })
}
export const update = (params) => {
    return request({
      url: 'api/blade-user/update',
      method: 'post',
      data: {
    ...params
    }
  })
  }
export const remove = (ids) => {
  return request({
    url: 'api/blade-user/remove?ids=' + ids,
    method: 'post',
    params: {}
  })
}
//修改密码
export const updatePassword = (params) => {
  return request({
    url: 'api/blade-user/updatePassword',
    method: 'post',
    data: {
      ...params
    }
  })
}
